package com.jetwinner.webfast.module.bigapp.service;

import com.jetwinner.webfast.kernel.dao.support.OrderBy;

import java.util.List;
import java.util.Map;

/**
 * @author xulixin
 */
public interface AppGroupThreadService {

    int searchThreadsCount(Map<String, Object> conditions);

    List<Map<String, Object>> searchThreads(Map<String, Object> conditions, OrderBy orderBy,
                                            Integer start, Integer limit);

    Map<String, Object> addThread(Map<String, Object> thread);

    Map<String, Object> getThread(Integer threadId);

    boolean isCollected(Integer userId, Object threadId);

    int searchPostsCount(Map<String, Object> condition);

    List<Map<String, Object>> searchPosts(Map<String, Object> condition, OrderBy orderBy,
                                          Integer start, Integer limit);

    List<Map<String, Object>> searchGoods(Map<String, Object> condition, OrderBy orderBy,
                                          Integer start, Integer limit);

    void waveHitNum(Integer threadId);

    Map<String, Object> getTradeByUserIdAndThreadId(Integer userId, Object threadId);
}
